﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Door: Door Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Door: Door Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Door Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Door" -->
<p><code>#include &lt;<a class="el" href="_door_8h_source.html">Door.h</a>&gt;</code></p>

<p><a href="class_door-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#a5d369d991ded0417454b089423e471b7">Door</a> (boost::asio::io_service &amp;io_service)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#a3dbbbd7a49698a8461d3c22df60bd2d3">~Door</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#af56885830eedf7d774a73af9d3f916ed">EvOpen</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#a2881cf502c9bdfdf624150509d725a00">EvClose</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#a8b3ffa49e5e81017646e7ea1c9b4d53a">EvSensorOpened</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#ab4f039a39ca48ce37f8a83ddd3cdba4f">EvSensorClosed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#aaac47580bd8e1c5bc4d7d4cc55143c49">EvQuit</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DoorContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_door_private.html">DoorPrivate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#af956324962e7d89eaff14313e22bef2d">m_pPrivate</a></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_door.html#ab1982c13162bcf4add875d06782818a0">DoorPrivate</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_door_8h_source.html#l00024">24</a> of file <a class="el" href="_door_8h_source.html">Door.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5d369d991ded0417454b089423e471b7"></a><!-- doxytag: member="Door::Door" ref="a5d369d991ded0417454b089423e471b7" args="(boost::asio::io_service &amp;io_service)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Door::Door </td>
          <td>(</td>
          <td class="paramtype">boost::asio::io_service &amp;&#160;</td>
          <td class="paramname"><em>io_service</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00010">10</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#af956324962e7d89eaff14313e22bef2d">m_pPrivate</a> = <span class="keyword">new</span> <a class="code" href="class_door.html#ab1982c13162bcf4add875d06782818a0">DoorPrivate</a>(); 
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a> = <span class="keyword">new</span> DoorContext(*<a class="code" href="class_door.html#af956324962e7d89eaff14313e22bef2d">m_pPrivate</a>, io_service);
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;SetObserver(SmBoostObserver::GetInstance());
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EnterInitialState();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a3dbbbd7a49698a8461d3c22df60bd2d3"></a><!-- doxytag: member="Door::~Door" ref="a3dbbbd7a49698a8461d3c22df60bd2d3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Door::~Door </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00018">18</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keyword">delete</span> <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>;
    <span class="keyword">delete</span> <a class="code" href="class_door.html#af956324962e7d89eaff14313e22bef2d">m_pPrivate</a>;
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2881cf502c9bdfdf624150509d725a00"></a><!-- doxytag: member="Door::EvClose" ref="a2881cf502c9bdfdf624150509d725a00" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Door::EvClose </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00029">29</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EvClose();
}
</pre></div>
</div>
</div>
<a class="anchor" id="af56885830eedf7d774a73af9d3f916ed"></a><!-- doxytag: member="Door::EvOpen" ref="af56885830eedf7d774a73af9d3f916ed" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Door::EvOpen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00024">24</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EvOpen();
}
</pre></div>
</div>
</div>
<a class="anchor" id="aaac47580bd8e1c5bc4d7d4cc55143c49"></a><!-- doxytag: member="Door::EvQuit" ref="aaac47580bd8e1c5bc4d7d4cc55143c49" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Door::EvQuit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00044">44</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EvQuit();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ab4f039a39ca48ce37f8a83ddd3cdba4f"></a><!-- doxytag: member="Door::EvSensorClosed" ref="ab4f039a39ca48ce37f8a83ddd3cdba4f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Door::EvSensorClosed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00039">39</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EvSensorClosed();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a8b3ffa49e5e81017646e7ea1c9b4d53a"></a><!-- doxytag: member="Door::EvSensorOpened" ref="a8b3ffa49e5e81017646e7ea1c9b4d53a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Door::EvSensorOpened </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8cpp_source.html#l00034">34</a> of file <a class="el" href="_door_8cpp_source.html">Door.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">m_pContext</a>-&gt;EvSensorOpened();
}
</pre></div>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ab1982c13162bcf4add875d06782818a0"></a><!-- doxytag: member="Door::DoorPrivate" ref="ab1982c13162bcf4add875d06782818a0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_door_private.html">DoorPrivate</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8h_source.html#l00026">26</a> of file <a class="el" href="_door_8h_source.html">Door.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab719565f5f4cffdcecb39a58bdc17ce6"></a><!-- doxytag: member="Door::m_pContext" ref="ab719565f5f4cffdcecb39a58bdc17ce6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DoorContext* <a class="el" href="class_door.html#ab719565f5f4cffdcecb39a58bdc17ce6">Door::m_pContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8h_source.html#l00042">42</a> of file <a class="el" href="_door_8h_source.html">Door.h</a>.</p>

</div>
</div>
<a class="anchor" id="af956324962e7d89eaff14313e22bef2d"></a><!-- doxytag: member="Door::m_pPrivate" ref="af956324962e7d89eaff14313e22bef2d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_door_private.html">DoorPrivate</a>* <a class="el" href="class_door.html#af956324962e7d89eaff14313e22bef2d">Door::m_pPrivate</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_door_8h_source.html#l00043">43</a> of file <a class="el" href="_door_8h_source.html">Door.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_door_8h_source.html">Door.h</a></li>
<li><a class="el" href="_door_8cpp_source.html">Door.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
